package cn.xx.org.service.impl;

import cn.xx.basic.service.impl.BaseServiceImpl;
import cn.xx.basic.util.PageList;
import cn.xx.org.domain.SystemDictionaryDetail;
import cn.xx.org.mapper.SystemDictionaryDetailMapper;
import cn.xx.org.query.SystemDictionaryDetailQuery;
import cn.xx.org.service.ISystemDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail> implements ISystemDictionaryDetailService {
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;


   /* @Override
    public PageList<SystemDictionaryDetail> pageQuery(SystemDictionaryDetailQuery systemDictionaryDetailQuery) {
        //1.先查询总数量
        Integer count = systemDictionaryDetailMapper.queryCount(systemDictionaryDetailQuery);
        //2.判断
        if (count == 0 || count == null) {
            return new PageList<SystemDictionaryDetail>();
        }
        //3.查询当前页的数据
        List<SystemDictionaryDetail> list = systemDictionaryDetailMapper.queryList(systemDictionaryDetailQuery);
        return new PageList<SystemDictionaryDetail>(count, list);
    }*/
}
